import request from '@/utils/request'

// 查询鸡舍管理列表
export function listHenhouse(query) {
    return request({
        url: '/henhouse/henhouse/list',
        method: 'get',
        params: query
    })
}

// 查询鸡舍管理详细
export function getHenhouse(CoopID) {
    return request({
        url: '/henhouse/henhouse/' + CoopID,
        method: 'get'
    })
}

// 新增鸡舍管理
export function addHenhouse(data) {
    return request({
        url: '/henhouse/henhouse',
        method: 'post',
        data: data
    })
}

// 修改鸡舍管理
export function updateHenhouse(data) {
    return request({
        url: '/henhouse/henhouse',
        method: 'put',
        data: data
    })
}

// 删除鸡舍管理
export function delHenhouse(CoopID) {
    return request({
        url: '/henhouse/henhouse/' + CoopID,
        method: 'delete'
    })
}
